package com.wmm.dao;

import com.wmm.pojo.Course;
import com.wmm.pojo.Course_Lesson;
import com.wmm.pojo.Course_Section;

import java.util.List;

/**
 * 课程内容管理DAO层接口
 */
public interface CourseContentDao {
    //根据课程id查询课程下面的章节
    public List<Course_Section> findSectionAndLessonByCourseId(int courseId);


    //根据章节ID，查询章节相关的课时信息
    public List<Course_Lesson> findLessonBySectionId(int sectionId);

    //根据课程ID，回显课时信息
    public Course findCourseByCourseId(int courseId);
    //保存章节信息
    public int saveSection(Course_Section section);

    //修改章节
    public int updateSection(Course_Section section) ;

    //修改章节的状态
    public int updateSectionStatus(int id,int status);

    //保存课时
    public int saveLesson(Course_Lesson lesson);

    //
    public int updateLesson(Course_Lesson lesson);



}
